package com.beans;

import creator.ui.graphics.Magicanvas;
import creator.ui.graphics.bean.Bean;
import java.awt.Image;

public class RoadBean extends Bean {

  private Image road;
  private static int roadY;
  private static int roadW;
  private static int roadH;

  public void initBean(Magicanvas cvs) {
    this.road = getImage("/res/img/road.gif");
    trackerImage(this.road, cvs);
    roadW = this.road.getWidth(cvs);
    roadH = this.road.getHeight(cvs);
    roadY = 614 - roadH - 27;
  }

  public Image getRoad() {
    return this.road;
  }

  public int getRoadY() {
    return roadY;
  }

  public void setRoadY(int roadY) {
    roadY = roadY;
  }

  public int getRoadW() {
    return roadW;
  }

  public void setRoadW(int roadW) {
    roadW = roadW;
  }

  public static int getRoadH() {
    return roadH;
  }

  public void setRoadH(int roadH) {
    roadH = roadH;
  }
}
